@import '~antd/dist/antd.css';

.home {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-size: 0.24rem;
  background: white;

  header {
    width: 100%;
    height: 0.6rem;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 999;

    span {
      width: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;

      i {
        font-size: 0.4rem;
      }

      a {
        color: white;
      }
    }

    .seachInput {
      flex: 1;
      background: rgba(0, 0, 0, 0.5);
      height: 0.4rem;
      border-radius: 7px;
      margin-top: 0.08rem;
      padding-left: 0.1rem;
      box-sizing: border-box;
      line-height: 0.6rem;
      display: flex;
      i {
        display: flex;
        color: white;
        font-size: 0.4rem;
        align-items: center;
        justify-content: center;
      }
      input {
        outline: none;
        flex: 1;
        background: rgba(0, 0, 0, 0);
        border: none;
        padding-left: 0.2rem;
        box-sizing: border-box;
      }

      input::placeholder {
        color: white;
      }

      .ant-carousel .slick-slide {
        text-align: center;
        height: 160px;
        line-height: 160px;
        background: #364d79;
        overflow: hidden;
      }

      .ant-carousel .slick-slide h3 {
        color: #fff;
      }
    }
  }

  section {
    flex: 1;
    background: whitesmoke;
    padding-bottom: 2rem;
    box-sizing: border-box;

    .banner {
      width: 100%;

      img {
        width: 100%;
        height: auto;
        display: block;
      }
    }

    .shopList {
      width: 100%;
      display: flex;
      background: white;

      dl {
        flex: 1;
        margin: 0;
        margin-top: 0.05rem;

        dt {
          width: 100%;
          display: flex;
          align-items: center;
          justify-content: center;

          img {
            width: 0.8rem;
            height: auto;
            display: block;
          }
        }

        dd {
          text-align: center;
        }
      }
    }

    .shop {
      width: 100%;
      margin-top: 0.05rem;

      p {
        margin: 0;
      }

      .goods {
        width: 100%;
        margin-top: 0.1rem;
        background: white;

        .shopTitle {
          text-align: center;
          height: 0.6rem;
          line-height: 0.6rem;
          color: #f73b61;
        }
        .shopTitle2{
          text-align: center;
          height: 0.6rem;
          line-height: 0.6rem;
          color: #fe6719;
        }
        .shopTitle3{
          text-align: center;
          height: 0.6rem;
          line-height: 0.6rem;
          color: #5fc600;
        }

        .goods_item {
          width: 100%;
          border-top: 1px solid #efefef;
          color: black;
          font-weight: 700;

          dl {
            margin: 0;

            dd {
              width: 100%;

              p {
                white-space: nowrap;
                overflow: hidden;
              }
            }
          }

          dl:first-child {
            width: 50%;
            float: left;
            border-right: 1px solid #efefef;

            dt {
              width: 100%;
              display: flex;
              align-items: center;
              justify-content: center;

              img {
                width: 3rem;
                height: 1.4rem;
              }
            }

            dd {
              width: 100%;

              p {
                white-space: nowrap;
                overflow: hidden;
              }
            }
          }

          dl:nth-child(2) {
            width: 50%;
            display: flex;
            border-bottom: 1px solid #efefef;

            dt {
              width: 100%;
              display: flex;
              align-items: center;
              justify-content: center;

              img {
                width: 1rem;
                height: 1rem;
                display: block;
              }
            }

            dd {
              width: 1.6rem;
            }
          }

          dl:nth-child(3) {
            width: 50%;
            display: flex;

            dt {
              width: 100%;
              display: flex;
              align-items: center;
              justify-content: center;

              img {
                width: 1rem;
                height: 1rem;
                display: block;
              }
            }

            dd {
              width: 1.6rem;
            }
          }

          .goods_bot {
            width: 25%;
            float: left;
            box-sizing: border-box;
            border: 1px solid #efefef;
            border-left: none;

            .shopPrice {
              font-weight: 400;
              color: red;
              text-align: center;
              margin: 0;
            }

            dt {
              width: 100%;

              img {
                width: 1.6rem;
                height: 1.8rem;
                display: block;
              }
            }
          }
        }

        .goods_items {
          width: 100%;
          border-top: 1px solid #efefef;
          color: black;
          font-weight: 700;

          dl {
            margin: 0;

            dd {
              width: 100%;
              p {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
              }
            }
          }

          dl:first-child {
            width: 50%;
            float: left;
            border-right: 1px solid #efefef;

            dt {
              width: 100%;
              display: flex;
              align-items: center;
              justify-content: center;

              img {
                width: 3rem;
                height: 1.4rem;
                display: block;
              }
            }

            dd {
              width: 100%;

              p {
                white-space: nowrap;
                overflow: hidden;
              }
            }
          }

          dl:nth-child(2) {
            width: 50%;
            float: left;
            border-bottom: 1px solid #efefef;
            dt {
              width: 100%;
              display: flex;
              align-items: center;
              justify-content: center;

              img {
                width: 3rem;
                height: 1.4rem;
                display: block;
              }
            }
          }
          .goods_bot {
            width: 25%;
            float: left;
            box-sizing: border-box;
            border: 1px solid #efefef;
            border-left: none;
            .shopPrice {
              font-weight: 400;
              color: red;
              text-align: center;
              margin: 0;
            }
            dt {
              width: 100%;
              img {
                width: 1.6rem;
                height: 1.8rem;
                display: block;
              }
            }
          }
        }
      }

      img {
        width: 100%;
        height: auto;
        display: block;
      }
    }
    .commodityLists {
      width: 100%;
      p{
        margin: 0;
      }
      dl {
        width: 48%;
        float: left;
        background: white;
        margin-right: 0.1rem;
        padding: 0.1rem;
        box-sizing: border-box;
        dt{
          width: 100%;
          display: flex;
          align-items: center;
          justify-content: center;
          img{
            width: 100%;
            height: auto;
            display: block;
          }
        }
        dd{
          width: 97%;
          text-align: left;
          p{
            height: 0.8rem;
            display: -webkit-box;
            text-align: center;
            overflow:hidden;
            text-overflow:ellipsis;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            margin: 0 auto;
            line-height: 0.4rem;
          }
          .price{
            text-align: left;
            color: red;
            height: 0.3rem;
          }
        }
      }
      .commodityTitle{
        height: 1rem;
        text-align: center;
        line-height: 1rem;
      }
    }
  }

  footer {
    width: 100%;
    height: 1rem;
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: white;
    a{
      color: black;
    }
    .active{
      color: red;
    }
    dl {
      flex: 1;
      text-align: center;

      dt {
        font-size: 0.4rem;
      }
    }

    dl:hover {
      color: red;
    }
  }
}